Reuse bucket when reduce terms buckets#20483
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
❌ Gradle check result for ae8b2ac: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
ae8b2ac to
ef07406
Compare
|
❌ Gradle check result for ef07406: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
ef07406 to
be081cb
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #20483 +/- ##
============================================
- Coverage 73.35% 73.26% -0.10%
+ Complexity 73209 73169 -40
============================================
Files 5921 5932 +11
Lines 333798 333941 +143
Branches 48124 48128 +4
============================================
- Hits 244862 244650 -212
- Misses 69387 69713 +326
- Partials 19549 19578 +29 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
This PR is stalled because it has been open for 30 days with no activity. |
|
This PR is stalled because it has been open for 30 days with no activity. |
Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>
be081cb to
a55ceb9
Compare
PR Reviewer Guide 🔍(Review updated until commit 1c6961e)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 1c6961e
Previous suggestionsSuggestions up to commit a55ceb9
|
|
❌ Gradle check result for a55ceb9: null Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
Persistent review updated to latest commit 1c6961e |
Description
When the requested field's cardinality is high, the reduce of term aggregation bucket creation become heavy.
Every cardinality is represented by a bucket. For each reduce, we merge the bucket of same key from multiple responses together, and create a new bucket for that.
This PR tries to reuse the existing bucket from the 1st response by in-place updating the field values, instead of creating one.
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.